<?
	

require_once "core.php";
//require_once $_SERVER['DOCUMENT_ROOT']."/../_lib/base/common.php";
require_once SITE_ROOT_PATH."/_lib/classes/class.offers_2_rss.php";

$offers_2_rss = new offers_2_rss();

$xml = $offers_2_rss->get_rss();

$fp = fopen(SITE_ROOT_PATH."latedeals.ie/rss/rss.xml", "w") or die("Couldn't create new file"); 
fwrite($fp, $xml); 
fclose($fp); 
